(function($){
	
	function init(opts){
		if(opts.onlyUpdate){
			renderOnlyUpload(opts);
		}else{
			renderAll(opts);
		}
	}
	
	function renderOnlyUpload(opts){
		var htmls=[];
		htmls.push('<div class="main"><div class="rightct"><div class="rightct-top">上传至：<select id="u8_input"><option value="默认分类">默认分类</option>  <option value="商品图片">商品图片</option><option value="店铺装修">店铺装修</option></select><input type="submit" value="创建分类" id="u7_input" tabindex="0"></div>');
		htmls.push('<div class="rightct-center"><div class="uplod-desc"><div>1.可一次上传100张图片，单张大小不超过2M,分辨率不超过5000</div><div>2.支持图片格式：*.gif,*.jpeg,*.png</div><div>3.产品图片应为正方形，且分辨率不能大于1000×1000像素</div></div></div>');
		htmls.push('<div class="rightct-bottom"><div class="upload-opts"><input type="button" value="添加图片" id="addPic"><input type="button" value="开始上传" id="submitUpload">可点击或将图片拖至下方区域进行添加</div><div class="upload-preview" ><form  id="fmUpload" action="/SaveUploadedFile" method="post" enctype="multipart/form-data"><div id="imgPreview" class="dropzone-previews" style="overflow:scroll;height:188px!important;min-height:188px; width:420px;<!--[if IE]>display:inline;<![endif]-->"></div></form></div><div class="upload-progress"></div></div></div>');
		htmls.push('<div class="leftct"><div class="leftct-list"><div></div><div class="leftct-opts"><input type="submit" value="插入" id="u21_input"><input type="submit" value="关闭" id="u22_input"></div></div></div></div>');
		return htmls.join('');
	}
	
	function renderAll(opts){
		
	}
	
	$.fn.picCenterUpload=function(par,parm){
		var $this=$('<div>').appendTo('body');
		var opts=$.extend({},$.fn.myWindow.picCenterUpload,par);
		opts.dom=$this;
		init(opts);
	};
	$.fn.picCenterUpload.methods={
	};
	$.fn.picCenterUpload.defaults={onlyUpdate:true};
})(jQuery);
